function graph = open_file(graph);

% ----------------------------------------------
% This function is designed to open a gml file.
%
% USAGE:
% graph = open_file(filename);
% 
% CREDITS:
% This script was written by Victor Wong.
% ----------------------------------------------

fid = fopen(which(graph));
if fid == -1
   error(strcat('Could not open or find the file: "', which(graph),'"'));
   return
end
a = textscan(fid, '%s','delimiter','\n','bufSize',99999);
graph.text = a{1};
fclose('all');